home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-19 | 3.7 KB | 164 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: Locrian:WWDCSun:CPlusPlus:BaseSess.xh.
- * Generated using:
- * SOM Precompiler somipc: somc/smemit.c
- * SOM Emitter emitxh.dll: somc/smmain.c
- */
-
- /*
- *
- * Theory of Operation
- *
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODBaseSession_xh
- #define SOM_ODBaseSession_xh
-
- class ODBaseSession;
-
- #define ODBaseSession_MajorVersion 0
- #define ODBaseSession_MinorVersion 0
-
- /* C++ som defs */
- #include <somcls.xh>
-
- /* Include C++ parent defs */
- #ifndef SOM_ODObject_xh
- #include <ODObject.xh>
- #endif
-
- #ifndef ODBaseSession_API
- #define ODBaseSession_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class ODExtension;
- class ODStorageSystem;
- class ODNameSpaceManager;
-
- /*
- * End of user-defined types.
- */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export on
- #endif
-
-
- /* A procedure to create the ODBaseSession Class */
- SOMEXTERN SOMClass * SOMLINK ODBaseSessionNewClass(
- integer4 majorVersion,
- integer4 minorVersion);
-
- /* The API to the ODBaseSession class object, and the methods it introduces. */
- typedef struct ODBaseSessionClassDataStructure {
- SOMClass *classObject;
- somMToken InitSession;
- somMToken GetStorageSystem;
- somMToken Close;
- somMToken GetNameSpaceManager;
- somMToken GetBinding;
- } ODBaseSessionClassDataStructure;
- #ifdef SOM_NO_DATA_EXPORTS
- SOMEXTERN ODBaseSessionClassDataStructure * ODBaseSessionGetClassData ( void );
- # undef ODBaseSessionClassData
- # define ODBaseSessionClassData (*ODBaseSessionGetClassData())
- #else
- SOMEXTERN ODBaseSessionClassDataStructure ODBaseSessionClassData;
- #endif /* SOM_NO_DATA_EXPORTS */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export off
- #endif
-
- #define _ODBaseSession ODBaseSessionClassData.classObject
-
- /* The API to parentMtabs for ODBaseSession, and the instance data it introduces. */
- SOMEXTERN struct ODBaseSessionCClassDataStructure {
- somMethodTabs parentMtab;
- somDToken instanceDataToken;
- } ODBaseSessionCClassData;
-
- /*
- * -- Typedefs for Procedures that support Methods introduced by ODBaseSession
- */
- SOMEXTERN {
- typedef ODStorageSystem* (* SOMLINK somTD_ODBaseSession_GetStorageSystem)(ODBaseSession *somSelf, Environment *ev);
- typedef void (* SOMLINK somTD_ODBaseSession_Close)(ODBaseSession *somSelf, Environment *ev);
- typedef ODNameSpaceManager* (* SOMLINK somTD_ODBaseSession_GetNameSpaceManager)(ODBaseSession *somSelf, Environment *ev);
- }
-
- #endif /* ODBaseSession_API */
-
-
- /*
- * -- Method Tokens are Thunks
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODBaseSession
- */
- class ODBaseSession : public ODObject
- {
- public:
-
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- if (!ODBaseSessionClassData.classObject)
- ODBaseSessionNewClass(ODBaseSession_MajorVersion,ODBaseSession_MinorVersion);
- return (void *)
- ((somTD_SOMClass_somNew)
- somresolve_((SOMObject *)((void*)(ODBaseSessionClassData.classObject)),
- SOMClassClassData.somNew))
- ((SOMClass *)((void*)(ODBaseSessionClassData.classObject)));
- }
-
- void operator delete(void * obj)
- {
- ((SOMObject *)obj)->somFree();
- }
-
- /* public method: GetStorageSystem */
- ODStorageSystem* GetStorageSystem(Environment *ev)
- {
- return SOM_Resolve(this,ODBaseSession,GetStorageSystem)
- (this,ev);
- }
-
-
- /* public method: Close */
- void Close(Environment *ev)
- {
- SOM_Resolve(this,ODBaseSession,Close)
- (this,ev);
- }
-
-
- /* public method: GetNameSpaceManager */
- ODNameSpaceManager* GetNameSpaceManager(Environment *ev)
- {
- return SOM_Resolve(this,ODBaseSession,GetNameSpaceManager)
- (this,ev);
- }
-
-
-
- }; /* ODBaseSession */
-
-
-
- #endif /* SOM_ODBaseSession_xh */
-